<%-- 
    Document   : AddUser.jsp
    Created on : 15 déc. 2013, 18:26:36
    Author     : justeabel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <!-- jquery -->
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
        
        <!-- jqueryui -->
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
        <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="inc/js/delete-user.js"></script>
        <link rel="stylesheet" href="inc/css/delete-user.css"/>
        <link rel="stylesheet" href="inc/css/bootstrap.min.css">
        <title>delete user</title>
    </head>
    <body>
        <div id="container">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <span class="bold" >Remove user </span>
                </div>
                <div class="panel-body">
                    <div id="content" >
                        <input id="username" class="form-control" required="required" type="text" placeholder="Enter the pseudo of the user to remove..."/>
                        <span id="loading-indicator">
                            <img id="loading" src="inc/img/ajax-loader-circle.gif" alt="deleting user..."/>
                        </span>
                        <br/>        
                    </div>
                </div>
                <div class="panel-footer">
                    <a href="#" id="autocomplete">Delete the account</a> 
                </div>
            </div>
            
            <div class="panel panel-default">
                <div class="panel-body">
                    <div id="error"></div>  
                </div>
                <div class="panel-footer">
                    <div id="footer">
                        <a href="<c:url value="/chat" /> " id="return-chat">
                            <span class="glyphicon glyphicon-comment"></span>
                            Back to chat page
                        </a>
                        <a href="<c:url value="/home" /> " id="return-home">
                            <span class="glyphicon glyphicon-home"></span>
                            Back to home page
                        </a>
                    </div> 
                </div>
            </div>
        </div>
    </body>
</html>